package com.ribbon.lcn.serviceb.api;

import com.ribbon.lcn.serviceb.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Ribbon
 * @Date 2019/2/22 14:32
 **/
@RestController
public class AccountServiceApi {
    @Autowired
    private AccountService accountService;
   @GetMapping("debit")
   public void debit(@RequestParam("userId") String userId, @RequestParam("money")int money){
           accountService.debit(userId,money);
    }
}
